
import Vue from 'vue'
import VueRouter from 'vue-router'
import LoginView from '@/views/LoginView.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'login',
    component: LoginView
  },{
    path:'/goodsCar',
    name:'goodsCar',
    component: () => import('@/views/GoodsCar.vue') 
  }

]

const router = new VueRouter({
  routes
})

export default router
